package com.senjoeson.publicsource.java;

import android.support.v4.app.Fragment;

import com.senjoeson.publicsource.R;
import com.senjoeson.publicsource.kotlin.BaseFragment;
import com.senjoeson.publicsource.kotlin.BaseMainTabActivity;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;

/**
 * @author sunqiao
 * @date 2018/5/28 15:50
 */

public class MainTabActivity extends BaseMainTabActivity {
    @NotNull
    @Override
    public List<Fragment> initFragments(@NotNull ArrayList<Fragment> fragments) {

        fragments.add(new BaseFragment());
        fragments.add(new BaseFragment());
        fragments.add(new BaseFragment());
        return fragments;
    }

    @NotNull
    @Override
    public String[] getTabTitles() {
        return new String[]{"测试数据1", "测试数据2", "测试数据3"};
    }

    @Override
    public int setResId() {
        return R.layout.activity_maintab;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }
}
